import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    isToken:false,
    user:{
      userId:-1,
      userName:"点击登录",
    }
  },
  getters: {
  },
  mutations: {
    AlteruserName(state,user){
      state.user.userName=user.userName
      state.user.userId=user.userId
    },
    alterIsToken(state,T){
      state.isToken=T

    }
  },
  actions: {
  },
  modules: {
    
  }
})
